package com.ian.homework;

public class SubPackageTest extends SubPackage {
    public SubPackageTest(int iCost) {
        super(iCost);
    }

    //默认赋值5
    public SubPackageTest() {
        super(5);
    }

    @Override
    public void show() {

        System.out.println("抽象类显示共消费：" + this.getiCost());
    }

    public static void main(String[] args) {
        SubPackage objTest = new SubPackageTest(5);
        objTest.show();
    }
}
